import request from '@/utils/request'

// 暴露封装获取新闻列表的接口
export const newsListAPI = (params) => {
  return request({
    url: '/v1_0/articles',
    params
  })
}

// 暴露封装获取新闻详情的接口
export const detailAPI = (id) => {
  return request({
    url: `/v1_0/articles/${id}`
  })
}
